package com.seray.zebraprintlib.content;

import com.seray.zebraprintlib.config.PrintConfig;

/**
 * Author：李程
 * CreateTime：2018/8/8 15:47
 * E-mail：licheng@kedacom.com
 * Describe：二维码
 */
public class QRCodeContent extends AZebraContent {

    public QRCodeContent(int x, int y, String content) {
        super(x, y, PrintConfig.NORMAL_QR_CODE_SIZE, PrintConfig.Direction.N, "", content);
        LINE_TYPE = "^BQ";
    }

    @Override
    public String install() {
        return "^FT"
                + x + COMMA
                + y
                + LINE_TYPE
                + direction + COMMA
                + size + COMMA
                + 7 + "^FH^FDQA" + COMMA
                + content + FILED_END
                + BREAK;
    }
}
